import constants from '@/commons/constants';
const moduleCode = constants.MODULE_MALL_CODE;
export default [
    {
        path: '/commodity',
        redirect: '/commodity/list'
    },
    {
        path: '/commodity/list',
        component: () => import('@/views/mall/commodity/list/index.vue')
    },
    {
        path: '/commodity/list/pub',
        component: () => import('@/views/mall/commodity/pub/index.vue'),
        meta: {
            title: '商品发布',
            editTitle: '商品编辑'
        }
    },
    {
        path: '/commodity/classify',
        component: () => import('@/views/mall/commodity/classify/index.vue'),
        meta: {
            title: '商品分组'
        }
    },
    {
        path: '/commodity/spec',
        component: () => import('@/views/mall/commodity/spec/index.vue'),
        meta: {
            title: '规格管理'
        }
    },
    {
        path: '/commodity/category',
        component: () => import('@/views/mall/commodity/category/index.vue'),
        meta: {
            title: '类目管理',
            permAuth: false,
            moduleCode
        }
    },
    {
        path: '/commodity/list/preview',
        component: () => import('@/views/mall/commodity/list/preview/index.vue'),
        meta: {
            title: '商品预览',
            permAuth: false,
            moduleCode
        }
    }
];
